what is the use of sensors